# your_script.py
import sys
import numpy

def add(a, b):
    return a + b

if __name__ == "__main__":
    # 持续监听 Java 输入
    while True:
        try:
            line = sys.stdin.readline().strip()
            if not line:
                break
            a, b = map(int, line.split(','))
            result = add(a, b)
            print(result, flush=True)  # 必须 flush 确保实时输出
        except Exception as e:
            print(f"Error: {e}", flush=True)